<?php
  require_once('tpl/header.php');
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>


<form class="form-horizontal" action="doVideoAdd.php" method="post" enctype="multipart/form-data">


  <div class="form-group">
    <label for="inputName" class="col-md-2 control-label">视频名称</label>
    <div class="col-md-6">
      <input type="text" class="form-control" id="inputName" placeholder="视频名称" name="videoname">
    </div>
  </div>



  <div class="form-group">
    <label for="inputPassword3" class="col-md-2 control-label">视频类型</label>
    <div class="col-md-6">
    <?php 
    require_once('../system/dbConn.php');
    connect();
    $sql="select * from videotype";
    $result=mysql_query($sql);



     ?>
  <select class="form-control" name="videotype">
  <?php 
    while($row=mysql_fetch_assoc($result)){
    	?>
    	 <option value="<?php echo $row["tid"]; ?>"><?php echo $row["typename"]; ?></option>
    	 <?php
    }
   ?>
</select>
</div>
    </div>

  <div class="form-group">
    <label for="inputBirthdate3" class="col-md-2 control-label">视频海报</label>
    <div class="col-md-8">
      <input type="file" id="inputBirthdate3" name="pic">
    </div>
  </div>


  <div class="form-group">
    <label for="inputEmail3" class="col-md-2 control-label">视频简介</label>
    <div class="col-md-6">
    <textarea name="intro" id="" cols="80" rows="10"></textarea>
    </div>
  </div>

  <div class="form-group">
    <label for="inputEmail3" class="col-md-2 control-label">下载地址</label>
    <div class="col-md-6">
      <input type="text" class="form-control" placeholder="下载地址" id="inputEmail3" name="address">
    </div>
  </div>


  <div class="form-group">
    <div class="col-md-offset-2 col-md-10">
    <input type="submit" class="btn btn-default" value="添加">
    <input type="reset" class="btn btn-default" value="重置">
    </div>
  </div>
</form>
</body>
</html>

   


<?php
  require_once('tpl/footer.php');
?>